package o;

import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appmarket.service.usercenter.personal.view.card.BasePersonalCard;
import o.der.d;

public class ekw extends BasePersonalCard implements OnClickListener {
    private ImageView ʽ;
    protected Context ˊ;
    private View ˋ;
    protected TextView ˎ;
    private TextView ˏ;
    protected ImageView ॱ;

    protected ekw(Context context) {
        super(context);
        this.ˊ = context;
    }

    public cgz ˏ(View view) {
        this.ˋ = view;
        this.ॱ = (ImageView) view.findViewById(d.ॱﾞ);
        this.ˎ = (TextView) view.findViewById(d.ᐝʼ);
        this.ˏ = (TextView) view.findViewById(d.ॱˌ);
        this.ʽ = (ImageView) view.findViewById(d.ʻʽ);
        ʽ(view);
        return this;
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        if (this.ˊˋ != null) {
            this.ˊˋ.setOnClickListener(new ckt(this));
        }
    }

    protected void ˎ(int i) {
        if (this.ˏ == null) {
            return;
        }
        if (i > 0) {
            this.ˏ.setText(cgy.ˎ((double) i));
            this.ˏ.setVisibility(0);
            return;
        }
        this.ˏ.setVisibility(4);
    }

    protected void ˏ(boolean z) {
        if (this.ʽ != null) {
            this.ʽ.setVisibility(z ? 0 : 8);
        }
    }

    public void onClick(View view) {
    }
}
